package hydrap2p.gui.commands;

import hydrap2p.gui.GUIDataHandler;
import hydrap2p.gui.MockModule;
import hydrap2p.gui.SearchPanel;
import hydrap2p.gui.StartupManagerPanel;

public class Cmd_StartupManagerPanel_AddModule implements Command {

	@Override
	public void execute() {
		
		GUIDataHandler.getInstance().getModules().add(new MockModule("NewModule", true, true));
		
		// Refresh data transfer table
		StartupManagerPanel.getInstance().refreshModuleList();
		
		//refresh search plugins in case one was added
		SearchPanel.getInstance().refreshPlugins();
	}

	@Override
	public String getCommand() {
		return this.getClass().getSimpleName();
	}

	@Override
	public void unexecute() {
		// TODO Auto-generated method stub

	}

}
